package com.graduation.vaccine.vo;


import com.graduation.vaccine.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author:CaiShuangLian
 * @FileName:
 * @Date:Created in  2022/4/21 13:33
 * @Version:
 * @Description:TODO
 */
@Data
public class SystemRegisterVo {
    /**
     * 注册手机号
     */
    @NotNull
    @IsMobile(required = true,message = "手机号码格式错误")
    private String userPhone;

    /**
     * 密码
     */
    @NotNull
    @Length(min = 6,max = 20)
    private String password;

    /**
     * 邮箱
     */
    @NotNull
    private String email;


    /**
     * 用户名
     */
    private String name;


    /**
     * 用户性别(1表示女，0表示男)
     */
    private Boolean sex;

    /**
     * 用户地址
     */
    private String address;

    /**
     * 头像
     */
    private String head;

    /**
     * 权限
     */
    private String action;

    /**
     * 部门名称
     */
    private String companyName;
}
